package org.cyb.demo.service.impl;

import org.cyb.demo.dao.PptMapper;
import org.cyb.demo.domain.Chapter;
import org.cyb.demo.domain.Ppt;
import org.cyb.demo.domain.Section;
import org.cyb.demo.service.PptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("pptService")
public class PptServiceImpl implements PptService {

    @Autowired
    private PptMapper pptMapper;

    @Override
    public void add(Ppt ppt, Section section) {
        pptMapper.insert(ppt,section);
    }

    @Override
    public Ppt findOneByName(Ppt ppt) {
        return pptMapper.selectOneByName(ppt);
    }
}
